-- GENERATED SPELL FOR [Maddened Frosthorn] --


function spell0_24901(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24901', 15000, 1)
end

function Sorts_24901(pUnit, Event)
local choix_sorts_24901 = math.random(0, 0)
if choix_sorts_24901 == 0 then
pUnit:RegisterEvent('spell0_24901', 1, 1)
end
end

function mob24901_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24901', math.random(1500, 3000), 1)
end

function mob24901_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24901_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24901_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24901, 1, 'mob24901_Action')
RegisterUnitEvent(24901, 2, 'mob24901_Leave')
RegisterUnitEvent(24901, 3, 'mob24901_Kill')
RegisterUnitEvent(24901, 4, 'mob24901_Die')
